package com.ronglian.register_mini_program.model;

import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "微信获取的access token信息")
public class WxUserAccessTokens {
    @ApiModelProperty(value = "accsss_token存储表的id", name = "id")
    private Integer id;
    @ApiModelProperty(value = "微信小程序的appid", name = "wx_app_id")
    private String wx_app_id;
    @ApiModelProperty(value = "微信小程序的appSecret", name = "wx_app_secret")
    private String wx_app_secret;

    @ApiModelProperty(value = "accsss_token", name = "wx_access_token")
    private String wx_access_token;

    @ApiModelProperty(value = "刷新token", name = "wx_refresh_token")
    private String wx_refresh_token;

    @ApiModelProperty(value = "有效期7200s", name = "expires_in")
    private Integer expires_in;
    @ApiModelProperty(value = "access token的获取时间", name = "create_time")
    private Date create_time;
    @ApiModelProperty(value = "access token的更新时间", name = "update_time")
    private Date update_time;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getWx_app_id() {
        return wx_app_id;
    }

    public void setWx_app_id(String wx_app_id) {
        this.wx_app_id = wx_app_id == null ? null : wx_app_id.trim();
    }

    public String getWx_app_secret() {
        return wx_app_secret;
    }

    public void setWx_app_secret(String wx_app_secret) {
        this.wx_app_secret = wx_app_secret == null ? null : wx_app_secret.trim();
    }

    public String getWx_access_token() {
        return wx_access_token;
    }

    public void setWx_access_token(String wx_access_token) {
        this.wx_access_token = wx_access_token == null ? null : wx_access_token.trim();
    }

    public String getWx_refresh_token() {
        return wx_refresh_token;
    }

    public void setWx_refresh_token(String wx_refresh_token) {
        this.wx_refresh_token = wx_refresh_token == null ? null : wx_refresh_token.trim();
    }

    public Integer getExpires_in() {
        return expires_in;
    }

    public void setExpires_in(Integer expires_in) {
        this.expires_in = expires_in;
    }

    public Date getCreate_time() {
        return create_time;
    }

    public void setCreate_time(Date create_time) {
        this.create_time = create_time;
    }

    public Date getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(Date update_time) {
        this.update_time = update_time;
    }
}